/**
 * 
 */
package com.alstudio.utils.formater;

import java.util.regex.Pattern;

/**
 * @author alonso lee
 *
 */
public class ALEmailFormater {

	private static String emailRegex = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
	private static Pattern emailPattern = Pattern.compile(emailRegex);
	/**
	 * 检查email合法性
	 * @return true:通过  false:未通过
	 */
	public static boolean isEmail(String email) {
		return emailPattern.matcher(email).matches();
	}
	
}
